package com.czwj.entities;

import java.util.Date;
import java.util.List;

public class ForumPost{
	private Integer id;
	
	private String title;
	
	private String content;
	
	private Integer replycount;
	
	private Integer status;
	
	private Integer hightlight;
	
	private Date updatetime;
	
	private Integer createrid;
	
	private Date createdate;
	
	private String createip;
	
	private Integer reviewerid;
	
	private Date reviewdate;
	
	private String reviewip;
	
	private UserInfo user;
	
	private List<ForumReply> replies;
	
	private List<Attachment> attachments;
	
	/**
	 * 创建一个新的实例 ForumPost.
	 *
	 */
	public ForumPost(){
		super();
		// TODO Auto-generated constructor stub
	}
	
	/**
	 * 创建一个新的实例 ForumPost.
	 *
	 * @param id
	 * @param title
	 * @param content
	 * @param replycount
	 * @param status
	 * @param createrid
	 * @param createdate
	 * @param createip
	 */
	public ForumPost(Integer id,String title,String content,Integer replycount,Integer status,Integer hightlight,
			Integer createrid,Date createdate,String createip){
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.replycount = replycount;
		this.status = status;
		this.hightlight = hightlight;
		this.createrid = createrid;
		this.createdate = createdate;
		this.createip = createip;
	}
	
	public UserInfo getUser(){
		return user;
	}
	
	public void setUser(UserInfo user){
		this.user = user;
	}
	
	public List<ForumReply> getReplies(){
		return replies;
	}
	
	public void setReplies(List<ForumReply> replies){
		this.replies = replies;
	}
	
	public List<Attachment> getAttachments(){
		return attachments;
	}
	
	public void setAttachments(List<Attachment> attachments){
		this.attachments = attachments;
	}
	
	public Integer getId(){
		return id;
	}
	
	public void setId(Integer id){
		this.id = id;
	}
	
	public String getTitle(){
		return title;
	}
	
	public void setTitle(String title){
		this.title = title == null?null:title.trim();
	}
	
	public String getContent(){
		return content;
	}
	
	public void setContent(String content){
		this.content = content == null?null:content.trim();
	}
	
	public Integer getReplycount(){
		return replycount;
	}
	
	public void setReplycount(Integer replycount){
		this.replycount = replycount;
	}
	
	public Integer getStatus(){
		return status;
	}
	
	public void setStatus(Integer status){
		this.status = status;
	}
	
	public Integer getHightlight(){
		return hightlight;
	}
	
	public void setHightlight(Integer hightlight){
		this.hightlight = hightlight;
	}
	
	public Date getUpdatetime(){
		return updatetime;
	}
	
	public void setUpdatetime(Date updatetime){
		this.updatetime = updatetime;
	}
	
	public Integer getCreaterid(){
		return createrid;
	}
	
	public void setCreaterid(Integer createrid){
		this.createrid = createrid;
	}
	
	public Date getCreatedate(){
		return createdate;
	}
	
	public void setCreatedate(Date createdate){
		this.createdate = createdate;
	}
	
	public String getCreateip(){
		return createip;
	}
	
	public void setCreateip(String createip){
		this.createip = createip == null?null:createip.trim();
	}
	
	public Integer getReviewerid(){
		return reviewerid;
	}
	
	public void setReviewerid(Integer reviewerid){
		this.reviewerid = reviewerid;
	}
	
	public Date getReviewdate(){
		return reviewdate;
	}
	
	public void setReviewdate(Date reviewdate){
		this.reviewdate = reviewdate;
	}
	
	public String getReviewip(){
		return reviewip;
	}
	
	public void setReviewip(String reviewip){
		this.reviewip = reviewip == null?null:reviewip.trim();
	}
}
